﻿
using System;
using System.Collections.Generic;
namespace hCommand {
    [Serializable]
    public class TaskCarrier :BaseTask {
        public static int getBaseDistance(Edge e) {//反射使用
            return e.b;
        }

        public override List<string> getLableData() {
            List<String> list = new List<string>();
            list.Add(extra);
            list.Add("起点：" + src);
            list.Add("终点：" + des);

            return list;
        }
        public override void init(CoreTask complete ,CoreTaskParam param ,TaskDto taskDto) {
            taskNo = param.taskNo;
            code = complete.boxCode;
            completeId = complete.id;
            completeParamId = param.id;
            src = taskDto.src;
            des = taskDto.des;
            status = ( int ) CoreTaskParamStatus.待执行;
            ralyForbid = ralyForbid;
            waveNo = complete.waveNo;
            extra = taskDto.src + "-->" + taskDto.des;

        }
    }
}
